home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / tnos / tnos100s / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-22  |  936 b   |  93 lines

  1. /*  setjmp.h
  2.  
  3.  
  4.  
  5.     Defines typedef and functions for setjmp/longjmp.
  6.  
  7.  
  8.  
  9.     Copyright (c) 1987, 1991 by Borland International
  10.  
  11.     All Rights Reserved.
  12.  
  13. */
  14.  
  15.  
  16.  
  17. #ifndef __SETJMP_H
  18.  
  19. #define __SETJMP_H
  20.  
  21.  
  22.  
  23. #if !defined( __DEFS_H )
  24.  
  25. #include <_defs.h>
  26.  
  27. #endif
  28.  
  29.  
  30.  
  31. typedef struct __jmp_buf {
  32.  
  33.     unsigned    j_sp;
  34.  
  35.     unsigned    j_ss;
  36.  
  37.     unsigned    j_flag;
  38.  
  39.     unsigned    j_cs;
  40.  
  41.     unsigned    j_ip;
  42.  
  43.     unsigned    j_bp;
  44.  
  45.     unsigned    j_di;
  46.  
  47.     unsigned    j_es;
  48.  
  49.     unsigned    j_si;
  50.  
  51.     unsigned    j_ds;
  52.  
  53. }   jmp_buf[1];
  54.  
  55.  
  56.  
  57. #ifdef __cplusplus
  58.  
  59. extern "C" {
  60.  
  61. #endif
  62.  
  63.  
  64.  
  65. #if !defined( _Windows )
  66.  
  67. void    _CType longjmp(jmp_buf __jmpb, int __retval);
  68.  
  69. int     _CType setjmp(jmp_buf __jmpb);
  70.  
  71. #else
  72.  
  73. void far pascal longjmp( struct __jmp_buf far *__jmpb, int __retval );
  74.  
  75. int far pascal setjmp( struct __jmp_buf far *__jmpb);
  76.  
  77. #endif
  78.  
  79.  
  80.  
  81. #ifdef __cplusplus
  82.  
  83. }
  84.  
  85. #endif
  86.  
  87.  
  88.  
  89. #endif
  90.  
  91.  
  92.  
  93.